import { post } from '../http'

/**
 * @description: 获取保养列表
 * @param data
 * @return Promise
 */
export const getMaintenanceList = (data) => post({ url: '/carMaintenance/getList', data })
/**
 * @description: 保养详情
 * @param data
 * @return Promise
 */
export const maintenanceDetail = (data) => post({ url: '/carMaintenance/detail', data })
/**
 * @description: 新增保养
 * @param data
 * @return Promise
 */
export const maintenanceAdd = (data) => post({ url: '/carMaintenance/save', data })
/**
 * @description: 编辑保养
 * @param data
 * @return Promise
 */
export const maintenanceEdit = (data) => post({ url: '/carMaintenance/edit', data })
/**
 * @description: 车牌列表
 * @param data
 * @return Promise
 */
export const getLicenseNoLike = (data) => post({ url: '/carInfo/getLicenseNoLike', data })
/**
 * @description: 修理厂（供应商）列表
 * @param data
 * @return Promise
 */
export const getSupplierList = (data) => post({ url: '/supplier/findList', data })
/**
 * @description: 获取当前用户信息
 * @param data
 * @return Promise
 */
export const findUserInfo = (data) => post({ url: '/user/findUserInfo', data })
/**
 * @description: 员工列表
 * @param data
 * @return Promise
 */
export const getStaff = (data) => post({ url: '/staff/selectStaffByOrgId', data })
/**
 * @description: 删除保养
 * @param data
 * @return Promise
 */
export const carMaintenanceDelete = (data) => post({ url: '/carMaintenance/delete', data })
/**
 * @description: 查询全部配件(全部保养项目)
 * @param data
 * @return Promise
 */
export const getAllMaintenance = (data) => post({ url: '/maintenanceParam/getAllList', data })
/**
 * @description: 添加配件(添加保养项目)
 * @param data
 * @return Promise
 */
export const maintenanceSave = (data) => post({ url: '/maintenanceParam/batchSave', data })
/**
 * @description: 门店列表(筛选里的)
 * @param data
 * @return Promise
 */
export const getStoreList = (data) => post({ url: '/siteLease/searchForStaff', data })
/**
 * @description: 导出
 * @param data
 * @return Promise
 */
export const MaintenanceExportExcel = (data) => post({ url: '/carMaintenance/exportExcel', data })
/**
 * @description: 负责人（联动门店）
 * @param data
 * @return Promise
 */
export const selectStaffByOrgId = (data) => post({ url: '/staff/selectStaffByOrgId', data })

/**
 * @description: 账单详情
 * @param data
 * @return Promise
 */
export const getBillingDetails = (data) => post({ url: '/carAssetFee/getBillingDetails', data })
/**
 * @description: 导出
 * @param data
 * @return Promise
 */
/**
 * @description: 列表
 * @param data
 * @return Promise
 */

// 获取关联订单号
export const getRelationOrderNo = (data) => post({ url: '/carInfo/findOrder', data })

// 查询当前车辆信息
export const getCarOrder = (data) => post({ url: '/sOrder/orderCarInfo', data })

//获取下次保养时间和配置里程数
export const getNextDateAndKilometre = (data) => post({ url: '/carMaintenance/getNextDateAndKilometre', data })

/** 关闭保养单 */
export const carMaintenanceClose = (data) => post({ url: '/carMaintenance/close', data })
